<?php  
class ControllerModuleLiveSupport extends Controller {
	protected function index() {
		$this->language->load('module/live_support');

      	$this->data['heading_title'] = $this->language->get('heading_title');
		
        $ymarray = explode(",", $this->config->get('yahoo_messenger_code'));

		$this->data['ymcode'] = "";
		foreach($ymarray as $ymid){
			$this->data['ymcode'] .= '<a href="ymsgr:sendim?'.trim($ymid).'" ><img src="http://opi.yahoo.com/online?u='.trim($ymid).'&amp;t='.$this->config->get('yahoo_messenger_opi_code').'" style="border:none" alt="No image available"></img></a><br />';
		}
		$this->id = 'yahoo_messenger';
        		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/live_support.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/live_support.tpl';
		} else {
			$this->template = 'default/template/module/live_support.tpl';
		}
		
		$this->render();
	}
}
?>